import request from '@/utils/request'

// 查询留言列表
export function listLeaveMessage(query) {
  return request({
    url: '/culture/leaveMessage/list',
    method: 'get',
    params: query
  })
}

// 查询留言详细
export function getLeaveMessage(id) {
  return request({
    url: '/culture/leaveMessage/' + id,
    method: 'get'
  })
}

// 新增留言
export function addLeaveMessage(data) {
  return request({
    url: '/culture/leaveMessage',
    method: 'post',
    data: data
  })
}

// 修改留言
export function updateLeaveMessage(data) {
  return request({
    url: '/culture/leaveMessage',
    method: 'put',
    data: data
  })
}

// 删除留言
export function delLeaveMessage(id) {
  return request({
    url: '/culture/leaveMessage/' + id,
    method: 'delete'
  })
}
